package com.ruoyi.project.syl_DZ.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.web.domain.BaseEntity;
import io.swagger.models.auth.In;
import org.apache.commons.codec.language.bm.Rule;

import java.io.Serializable;
import java.util.Date;

/**
 * 患者库实体类型
 */
public class PatientLibrary extends BaseEntity  {
    private Integer patientId; // 主键
    private String patientName; // 患者姓名
    private String patientSex; // 患者性别String
    private String patientIdCard; // 患者身份证
    private Integer patientAge; // 患者年龄
    private String patientPhone; // 患者手机
    private String patientAddr; // 患者地址
    @JsonFormat(pattern = "yyyy-MM-dd ")
    private Date patientBirth; // 患者出生日期
    private String patientAlle; // 患者过敏史

    public PatientLibrary() {
    }

    public PatientLibrary(Integer patientId, String patientName, String patientSex, String patientIdCard,
                          Integer patientAge, String patientPhone, String patientAddr, Date patientBirth,
                          String patientAlle) {
        this.patientId = patientId;
        this.patientName = patientName;
        this.patientSex = patientSex;
        this.patientIdCard = patientIdCard;
        this.patientAge = patientAge;
        this.patientPhone = patientPhone;
        this.patientAddr = patientAddr;
        this.patientBirth = patientBirth;
        this.patientAlle = patientAlle;
    }

    public Integer getPatientId() {
        return patientId;
    }

    public void setPatientId(Integer patientId) {
        this.patientId = patientId;
    }

    public String getPatientName() {
        return patientName;
    }

    public void setPatientName(String patientName) {
        this.patientName = patientName;
    }

    public String getPatientSex() {
        return patientSex;
    }

    public void setPatientSex(String patientSex) {
        this.patientSex = patientSex;
    }

    public String getPatientIdCard() {
        return patientIdCard;
    }

    public void setPatientIdCard(String patientIdCard) {
        this.patientIdCard = patientIdCard;
    }

    public Integer getPatientAge() {
        return patientAge;
    }

    public void setPatientAge(Integer patientAge) {
        this.patientAge = patientAge;
    }

    public String getPatientPhone() {
        return patientPhone;
    }

    public void setPatientPhone(String patientPhone) {
        this.patientPhone = patientPhone;
    }

    public String getPatientAddr() {
        return patientAddr;
    }

    public void setPatientAddr(String patientAddr) {
        this.patientAddr = patientAddr;
    }

    public Date getPatientBirth() {
        return patientBirth;
    }

    public void setPatientBirth(Date patientBirth) {
        this.patientBirth = patientBirth;
    }

    public String getPatientAlle() {
        return patientAlle;
    }

    public void setPatientAlle(String patientAlle) {
        this.patientAlle = patientAlle;
    }

    @Override
    public String toString() {
        return "PatientLibrary{" +
                "patientId=" + patientId +
                ", patientName='" + patientName + '\'' +
                ", patientSex='" + patientSex + '\'' +
                ", patientIdCard=" + patientIdCard +
                ", patientAge=" + patientAge +
                ", patientPhone=" + patientPhone +
                ", patientAddr='" + patientAddr + '\'' +
                ", patientBirth=" + patientBirth +
                ", patientAlle='" + patientAlle + '\'' +
                '}';
    }
}
